import request from '@/plugins/axios'

// 获取红包视频的列表 
export const apiGetVideoList = (params?: any) => request.get('/supply_video.video/lists', params)

// 添加红包视频
export const apiAddVideo = (params: any) => request.post('/supply_video.video/add', params)


// 编辑视频
export const apiEditVideo = (params: any) => request.post('/supply_video.video/edit', params)



// 删除视频
export const apiDelVideo = (params: any) => request.post('/supply_video.video/delete', params)

// 充值视频
export const apiRechargeVideo = (params: any) => request.post('/supply_video.video/recharge', params)

// 请求规则列表 
export const apiVideoRuleList = (params: any) => request.get('/supply_video.videoRedRule/lists', {params})

// 添加规则
export const apiVideoRuleAdd = (params: any) => request.post('/supply_video.videoRedRule/add', params)

// 修改规则
export const apiVideoRuleEdit = (params: any) => request.post('/supply_video.videoRedRule/edit', params)

//@todo 规则设置 有改动
export const apiSetRuleVideo = (params: any) => request.post('/supply_video.videoRedRule/setRule', params)